Texttoimage not working with Static Cache

Author Message

Felipe Jaramillo

Wednesday 18 January 2006 9:46:51 pm

Hello,

We just set up static cache in a 3.7.2 installation. Everything works as expected, and effectively our benchmarks moved from 0.2 - 2 request per second to a whopping 250 to 550 requests per second depending on concurrency and number of requests!

Just beautiful.

Yet, ive noticed that the titles using texxtoimage render as a simple html font, whereas in the non-cached version they show up correctly.

The structure of the working (non static cached) image url's seems to be the same as the broken (static cached) not working image urls.

For example using static cache, the URL to the image:
http://www.site.com/var/cache/texttoimage/imagetext/0/0/e/00ec564ac8848a9f440300874f03c50f/Servicios.png
Does not work and points to a Module Not Found, which makes me believe it is somehow being redirected.

After deleting the static content files, I get the same URL:
http://www.site.com/var/cache/texttoimage/imagetext/0/0/e/00ec564ac8848a9f440300874f03c50f/Servicios.png
Which works.

These are my rewrite rules in the virtualhost setting so far:

RewriteCond /home/xxx/public_html/static/index.html -f
RewriteRule ^/$ /static/index.html [L]
RewriteCond /home/xxx/public_html/static/index.html -f
RewriteRule ^$ /static/index.html [L]
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteCond /home/xxx/public_html/static$1/index.html -f
RewriteRule ^(.*)$ /static$1/index.html [L]

Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule .* /index.php

RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) /webdav.php [L]

RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) /soap.php [L]

Any ideas?

Thanks,

Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Felipe Jaramillo

Thursday 19 January 2006 9:01:41 am

Ive solved this.

It seems I was pointing the static cache generation to a testing server instead of the actual server of the site. After adjusting this, the problem was fixed.

Sorry.

Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:34:31
Script start
Timing: Jan 18 2025 22:34:31
Module start 'layout'
Timing: Jan 18 2025 22:34:31
Module start 'content'
Timing: Jan 18 2025 22:34:33
Module end 'content'
Timing: Jan 18 2025 22:34:33
Script end

Main resources:

Total runtime1.2551 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1484152.6406
Module start 'layout' 0.00520.0032 740.789139.4766
Module start 'content' 0.00841.2452 780.2656466.4063
Module end 'content' 1.25360.0015 1,246.671912.1250
Script end 1.2550  1,258.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2412160.0002
Check MTime0.00130.1022160.0001
Mysql Total
Database connection0.00090.070610.0009
Mysqli_queries1.201595.7287520.0231
Looping result0.00080.0600500.0000
Template Total1.215096.820.6075
Template load0.00200.158620.0010
Template processing1.213096.648820.6065
Template load and register function0.00030.024510.0003
states
state_id_array0.00110.086710.0011
state_identifier_array0.00300.242620.0015
Override
Cache load0.00170.1327420.0000
Sytem overhead
Fetch class attribute can translate value0.00060.050910.0006
Fetch class attribute name0.00550.438120.0027
XML
Image XML parsing0.00010.005610.0001
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00210.1682100.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs