Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Microformats Votes + Cache, Any way to exclude the plugin's output from the page cache?
Akis
post Apr 26 2012, 02:27 AM
Post #1


Newbie
*

Group: Members
Posts: 6
Joined: 26-April 12
Member No.: 1,169



Hello

I recently purchased the Microformats Votes which I use with K2 in joomla 1.5 . However I have a game breaker bug looking at my face and if you guys can't help I'll have to remove rating alltogether.

The problem is that I have a very sophisticated cache system with 3 different levels of cache.... memcache - template cache - page cache (heavily moded Jotache plugin...a much better system-cache) and rating does not play well with the page cache. Even though the vote is registering in the database and the plugin outputs its stuff, as expected, when page reloads, it loads the cached page ofc, which has the whatever number of votes (depending on when was the cache taken. I don't use cache lifetime for the page cache, i don't need to. I manually delete the cache of the few pages I need. I was planning to let thousands of pages on cache forever, or until content updated, then i remove the specific page cache manually). What's worse is that google also, as expected, sees the cached page's rating.

Clearing the whole cache is not an option.

With jotcache i've been able to exclude many module positions from page cache, and it works like a charm.
Maybe something like that is possible with the voting as well? I think it's common sense to not cache the rating...by ANY cache system. I think it merits an update asap, a whole integer up on the version.

What do you think?


e.g. if i could couple the "plugin in module" extension with the microformat votes plugin (is this possible? pls take a look http://extensions.joomla.org/extensions/co...a-include/6713), in order to put it in a module, then i could easily use the jotcache feature of excluding modules and voila. just an idea
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post Apr 26 2012, 08:36 AM
Post #2


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Цитат(Akis @ Apr 26 2012, 03:27 AM) *
Hello

I recently purchased the Microformats Votes which I use with K2 in joomla 1.5 . However I have a game breaker bug looking at my face and if you guys can't help I'll have to remove rating alltogether.

The problem is that I have a very sophisticated cache system with 3 different levels of cache.... memcache - template cache - page cache (heavily moded Jotache plugin...a much better system-cache) and rating does not play well with the page cache. Even though the vote is registering in the database and the plugin outputs its stuff, as expected, when page reloads, it loads the cached page ofc, which has the whatever number of votes (depending on when was the cache taken. I don't use cache lifetime for the page cache, i don't need to. I manually delete the cache of the few pages I need. I was planning to let thousands of pages on cache forever, or until content updated, then i remove the specific page cache manually). What's worse is that google also, as expected, sees the cached page's rating.

Clearing the whole cache is not an option.

With jotcache i've been able to exclude many module positions from page cache, and it works like a charm.
Maybe something like that is possible with the voting as well? I think it's common sense to not cache the rating...by ANY cache system. I think it merits an update asap, a whole integer up on the version.

What do you think?


e.g. if i could couple the "plugin in module" extension with the microformat votes plugin (is this possible? pls take a look http://extensions.joomla.org/extensions/co...a-include/6713), in order to put it in a module, then i could easily use the jotcache feature of excluding modules and voila. just an idea


Hello, Akis.

Unfortunately the MFV plugin is unable to tell when a page is loaded from a cache as in this case it is not called at all.

If your cache system(s) allow a specific cache entry to be rebuilt on demand, this is what you are looking for. The plugin can be altered in such a way that when a user vote is accepted, the MFV will invalidate the relevant page's cached copy, which will have to be rebuild the next time the page is displayed, thus displaying the correct data.

Currently we are unable to examine the extension suggested by you. It will probably work if the relevant data is provided to it: context, item ID and item title (please see the plgMFV tag refference).

Best regards,

Ivan
Go to the top of the page
 
+Quote Post
Akis
post Apr 26 2012, 11:30 AM
Post #3


Newbie
*

Group: Members
Posts: 6
Joined: 26-April 12
Member No.: 1,169



QUOTE (Ivan Stamenov @ Apr 26 2012, 11:36 AM) *
Hello, Akis.

Unfortunately the MFV plugin is unable to tell when a page is loaded from a cache as in this case it is not called at all.

If your cache system(s) allow a specific cache entry to be rebuilt on demand, this is what you are looking for. The plugin can be altered in such a way that when a user vote is accepted, the MFV will invalidate the relevant page's cached copy, which will have to be rebuild the next time the page is displayed, thus displaying the correct data.

Currently we are unable to examine the extension suggested by you. It will probably work if the relevant data is provided to it: context, item ID and item title (please see the plgMFV tag refference).

Best regards,

Ivan


Hello

Thank you for the answer. However I cannot seem to find instructions about the tag reference for K2. The text file in the archive doesn't explain about K2. Can you help?

p.s. I found another nice little extenion called K2 Bnr, and supposedly it takes any part of a k2 item and outputs it in a module, which might work exactly as I want it to, haven't tested it yet, will report back if i'm successful
Go to the top of the page
 
+Quote Post
Akis
post Apr 26 2012, 01:17 PM
Post #4


Newbie
*

Group: Members
Posts: 6
Joined: 26-April 12
Member No.: 1,169



One more thing I just noticed. The plugin doesn't output the correct values in k2 itemlist view (category), basically it shows 0 votes for all items in any category view.
Go to the top of the page
 
+Quote Post
Akis
post Apr 26 2012, 04:49 PM
Post #5


Newbie
*

Group: Members
Posts: 6
Joined: 26-April 12
Member No.: 1,169



I did it.

Quite simple actually. I loaded a module position into the item.php of k2 using "modules anywhere" extension, which I excluded from caching using jotcache's tags of exclusion. At that position I published the "K2bnr" module with all its settings at off.

Now this module loads all the item's plugins (including votes) and it's output is excluded from page cache by jotcache.....nice smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Pinned: Topic has attachmentsMicroformats Seo Plugin For Rich Snippets In Joomla
Seo plugin to show Rich snippets in google over joomla votes
139 Web Design Seo 653,701 13th March 2020 - 02:13 PM
Last post by: Web Design Seo
No new Pinned: Microformats For Zen Cart
Microformats ratings for Zen Cart online stores
45 Web Design Seo 439,461 30th December 2015 - 11:11 AM
Last post by: Aldo Campione
No New Posts Microformats And Jdownloads - Presale Question
2 zaxavar 64,705 16th June 2014 - 11:59 AM
Last post by: Web Design Seo
No New Posts Microformatsvotes Joomla Plugin
Can´t vote when clicking on the starts?
1 Falle 61,945 30th April 2014 - 06:22 AM
Last post by: Web Design Seo
No New Posts Microformats Show Stars When ..google Want ? !
1 lalalas 64,965 23rd March 2014 - 12:20 PM
Last post by: Web Design Seo
No New Posts Microformats Votes и Flexicontent
1 victorio04 64,845 12th March 2014 - 06:45 PM
Last post by: Web Design Seo
No new Pinned: Microformats For Oscommerce
Microformats votes (Microformats ratings) for Oscommerce online shops
40 Web Design Seo 179,450 25th February 2014 - 01:29 PM
Last post by: Beleth
No New Posts Microformats Installed But Doesn't Work
Microformats
1 Paddlingal 61,756 27th January 2014 - 03:30 PM
Last post by: Web Design Seo
No New Posts Microformats Show Individual User Vote
How do we get a single user's rating for a specific article to dis
3 leven 41,529 3rd December 2013 - 11:24 AM
Last post by: pavelKukov
No New Posts Microformats Votes And Seblod Component
1 varrinka 34,604 18th November 2013 - 06:32 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 1st June 2026 - 09:21 PM