Welcome Guest, Not a member yet? Register   Sign In
Cache library with memcache support
#11

[eluser]Computerzworld[/eluser]
one another problem that i am facing in caching...
i am having one banner html code wrapped inside header file... i want to cache this banner as it is taking more time to load.. how can I cache it seperately?

Here is my banner code...
Code:
<td width="24%">
                    <a href="#" target="_blank" id="hel" name="hel">
                        <img src="" target="Services" name="banner1" id="banner1" WIDTH="455" HEIGHT="56" border="1">
                    </a>
                </td>
And this code in turn uses javascript for rotating banner. How can I do this? Please help me. Thanks in advance
#12

[eluser]Phil Sturgeon[/eluser]
Great work Lovecannon, very tidy.

To make this more portable, could you not set a config file that has memcache settings, and if there are none it automatically uses file-based caching? Or if there are memcache settings and the module does not exists, use file based.

That way we could use your cache library throughout our scripts and not worry whether the server it is installed on has memcache installed or not.
#13

[eluser]chmod[/eluser]
[quote author="Computerzworld" date="1235569272"]yes that workedSmile thanks...[/quote]

ok, you had save the html header in cache,but how do you display it?
#14

[eluser]Ben Bowler[/eluser]
[quote author="Michael Wales" date="1204238194"]Elliot Haughin has published an absolutely fantastic article about benchmarking and caching.[/quote]

A very interesting read!




Theme © iAndrew 2016 - Forum software by © MyBB