staticcache and view parameter

Author Message

Guillaume Kulakowski

Monday 09 June 2008 4:38:48 am

Hello,

I try to configure my "planet" (http://planet.fedora-fr.org) in static cache.
The main page is static but all the other page <i>http://planet.fedora-fr.org/(offset)/*</i> are not in static cache.

The static cache is it compatible with view parameter ?

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Guillaume Kulakowski

Tuesday 10 June 2008 1:03:22 am

Hmm, it appears that is a limitation of static cache ...

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

André R.

Friday 13 June 2008 2:58:54 pm

Sorry for delayed response.
Static cache is a pre generated static cache, so it has no way of knowing about used view parameters.
If you want to have static cache for those, then you should look into using a reverse proxy instead (ie: Varnish or Squid).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Guillaume Kulakowski

Friday 13 June 2008 10:38:10 pm

Thanks André.

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Bin LIU

Friday 30 January 2009 1:42:21 am

delayed response.

I made a extension http://projects.ez.no/lastaticcache

1. it can be used for the page with view_parameter
2. to avoid generet the bad page with error.
3. don't add "/content/view/x" in table ezpending_action
4. filter don't add custom page in ezpending_action

I hope it's useful for you

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

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 30 2025 21:09:57
Script start
Timing: Jan 30 2025 21:09:57
Module start 'layout'
Timing: Jan 30 2025 21:09:57
Module start 'content'
Timing: Jan 30 2025 21:09:57
Module end 'content'
Timing: Jan 30 2025 21:09:57
Script end

Main resources:

Total runtime0.0312 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.1328151.2109
Module start 'layout' 0.00640.0062 739.3438220.7031
Module start 'content' 0.01260.0170 960.04691,005.7891
Module end 'content' 0.02960.0015 1,965.835937.9922
Script end 0.0311  2,003.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00299.3669140.0002
Check MTime0.00113.6111140.0001
Mysql Total
Database connection0.00092.815910.0009
Mysqli_queries0.004715.181530.0016
Looping result0.00000.076510.0000
Template Total0.00123.710.0012
Template load0.00092.921510.0009
Template processing0.00030.802010.0003
Override
Cache load0.00062.033010.0006
General
dbfile0.00268.330880.0003
String conversion0.00000.029140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs