Forums / Developer / Search Cache problem

Search Cache problem

Author Message

Julien Plesniak

Friday 27 April 2007 1:09:29 am

Hello,

I have a problem with my new Installation of Ez publish (3.9.1).

I search a word "blabla" in the search engine, the result is correct. After if i search "hello", the search engine replace "hello" by "blabla".

When i had disabled the cache in site.ini.append.php, i dont see this problem.

I test this:

{set-block scope=root variable=cache_ttl}0{/set-block} 
			{cache-block}
			<!-- Debut contenu noeud -->
				<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
				      {$module_result.content}
				</table> 
			<!-- Fin contenu noeud -->
			{/cache-block}

and

			{cache-block expiry=1}
			<!-- Debut contenu noeud -->
				<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
				      {$module_result.content}
				</table> 
			<!-- Fin contenu noeud -->
			{/cache-block}

but it doesnt work.

How can i repair this problem?

Thanks

Egil Fujikawa Nes

Thursday 03 May 2007 9:16:36 am

Hi Julien

I would recommend you to add uri_string to your cache block in order to make unique cache based on the URI. My working code looks like this:

{cache-block keys=array($uri_string, $user_hash, $access_type.name)}
{$module_result.content}
{/cache-block}

Good luck :)

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Julien Plesniak

Thursday 03 May 2007 11:50:05 pm

Hello thanks for your help but this solution doesn't repair my problem :(

André R.

Friday 04 May 2007 12:29:27 am

I'm guessing that the code your are showing here is from pgalayout.tpl, in that case:

Why are you wrapping modul_result.content inside a cache block ?
veiw_cache is the cache that handles the caching of modul_result.content, so you don't need a cache block around it. So remove the cache block and try again.

And this line:
{set-block scope=root variable=cache_ttl}0{/set-block}
Is supposed to be used inside node / system templates to turn of view cache for that specific page. Node / system templates are the one generating $modul_result.content, you can read more about it in the doc.

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

Egil Fujikawa Nes

Friday 04 May 2007 1:04:14 am

Hi

I'm familiar with the {set-block scope=root variable=cache_ttl}0{/set-block} setting that been working fine until I started to work with ezwebin in 3.9.0, here it looked like this setting are ignored by the default templates. I gave up and found the pagelayout.tpl cache to be a workaround for my problem, that were not directly related to the search functionality.

Anyway, sorry for giving a suggestion that's not working.

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Thomas Leiritz

Thursday 17 May 2007 1:41:40 am

Hi !

i have exactly the same problem.
i've already tried many ways
{set-block scope=root variable=cache_ttl}0{/set-block} doesn't work ( or i dont know how to use it)

if i disable the cache, it's working fine

if i use the original pagelayout.tpl (from ezwebin extension), it's working fine
but i cannot find the difference between this one and mine....

my version of ezp is 3.9.1
with the 3.9.2, same issue

So Julien, have you fix your problem ?

thanks !

Julien Plesniak

Sunday 20 May 2007 11:17:35 pm

Hello,

No i haven't fix my problem :(

Julien Plesniak

Monday 02 July 2007 5:52:04 am

someone have a new idea?

thanks

eZ debug

Timing: Jan 31 2025 01:24:04
Script start
Timing: Jan 31 2025 01:24:04
Module start 'content'
Timing: Jan 31 2025 01:24:04
Module end 'content'
Timing: Jan 31 2025 01:24:04
Script end

Main resources:

Total runtime0.2778 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.8281370.3047
Module start 'content' 0.00760.0145 958.13281,009.6094
Module end 'content' 0.02220.2555 1,967.74223,898.6484
Script end 0.2777  5,866.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00481.7169200.0002
Check MTime0.00160.5935200.0001
Mysql Total
Database connection0.00080.273910.0008
Mysqli_queries0.176863.64441410.0013
Looping result0.00150.53741390.0000
Template Total0.255191.810.2551
Template load0.00100.351310.0010
Template processing0.254191.495410.2541
Override
Cache load0.00070.238310.0007
Sytem overhead
Fetch class attribute can translate value0.00250.885710.0025
XML
Image XML parsing0.00050.175410.0005
General
dbfile0.00572.0516200.0003
String conversion0.00000.002130.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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