Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Preventing caching of plugins' output
Hi group

I'm having some problems with caching of plugin-output!

I've normally used the third parameter of register_function() to control
cacheability of plugins but now I've rewritten the plugins and places
them in the plugin directory where they are automatically loaded when
necessary.

One of the plugins are used for providing localized dates and times for
the templates - this is used for "todays date", "last modified", "this
year" and so on - not all of these dates are allowed to be cached and I
wonder if there is any way I can control it?

Examples of the use of my plugin:

{DateLocalized format="Y"}
{DateLocalized time=$page.timestamp}
{DateLocalized}

The function uses three optional parameters (format, time, lang) and I
was wondering whether I should pass some kind of fourth parameter
stating whether or not the result is cacheable? Or maybe the function
call should be wrapped in some kind of "non-caching-tags"?

I hope you can help me out here - I've noticed quite a speed-up using
caching and I would hate to "throw it away" because of this "detail".

Regards, Tommy Ipsen

Report this thread to moderator Post Follow-up to this message
Old Post
Tommy Ipsen
08-29-04 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.