Forums / Developer / ‘Cleaning the Cache’ Issue...

‘Cleaning the Cache’ Issue...

Author Message

Jorge estévez

Friday 09 October 2009 6:51:27 pm

Hi,

I have this web site that has 9000 items with 1400 categories (and it will still grow up), Whenever I activate template compile, view caching , template cache and then ‘Clear all the caches’ when I get to the public site each time I navigate it takes too much time to go from one page to another, once I get again to that page it works fast (assuming the cache of the browser has the page ‘saved’) . The dilemma is Why? It should work faster. It should not wait until someone visits all the pages to get things going faster.

I am developing this site for quite a while, and it’s made with ez 3.10.1 (It will be upgraded soon)… Anyway ‘Cleaning the Cache’ is really very fast once yo click on the button, so I wonder is it doing a “Real clean” at all?….

Has someone encountered something similar? Any tips on how to really clear the whole Site (I could use some .php at /bin and purge the all nodes, but it takes LOTS of time to do such a thing), Any solution that works faster?

Thanks to all…

I am developing the site LOCALLY at my Pc.

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Marko Žmak

Saturday 10 October 2009 11:02:51 am

When you clear the cache, the cache is regenerated on the first visit to the page. That why the first loading is slower, that's normal behaviour.

Why does it work so? Because regenerating the cache for ALL your pages at once would take toooo much time.

The solution for your problem is not to clear caches for production site too often, but use automatic cache clearing mechanisms in eZ. And for the development site set the DevelopmentMode setting. Explore the documentation.

You can also recompile your templates using the eztc.php script after clearng the cache, it should make the first loading a little bit faster.

For deleting the cache files faster you could manually delete the cache folder (but be careful not to delete something else). But in normal occasions you don't have the need for deleting cache files, they are deleted by eZ in the cache regeneration process.

And also, try not developing your site on a local PC; but on a faster server :)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Piotrek Karaś

Sunday 11 October 2009 4:32:19 am

Also try to identify which layers of the system (templates, SQL queries, etc.) take up most of the time as well as whether the long generation times result from generating just the content part ($module_result.content) or the entire pagelayout. Especially for the latter one, it might be the case that you have no repeatable pagelayout parts that could have already been regenerated earlier or you simply have bad cache-block keys set for the pagelayout. You want to have as few cache-block key combinations as are required by your communication/business needs.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

eZ debug

Timing: Jan 18 2025 11:41:43
Script start
Timing: Jan 18 2025 11:41:43
Module start 'content'
Timing: Jan 18 2025 11:41:45
Module end 'content'
Timing: Jan 18 2025 11:41:45
Script end

Main resources:

Total runtime1.2510 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.1406180.8359
Module start 'content' 0.00811.1150 769.9766591.0938
Module end 'content' 1.12310.1277 1,361.0703336.7422
Script end 1.2508  1,697.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3284210.0002
Check MTime0.00150.1201210.0001
Mysql Total
Database connection0.00210.166810.0021
Mysqli_queries1.179994.31441960.0060
Looping result0.00190.14921940.0000
Template Total1.219397.520.6097
Template load0.00200.160020.0010
Template processing1.217397.310320.6087
Template load and register function0.00020.018310.0002
states
state_id_array0.00080.063910.0008
state_identifier_array0.00120.092220.0006
Override
Cache load0.00160.1300200.0001
Sytem overhead
Fetch class attribute can translate value0.00140.114040.0004
Fetch class attribute name0.00150.122550.0003
XML
Image XML parsing0.00150.121140.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00280.2211360.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0003 secs