Welcome Guest, Not a member yet? Register   Sign In
Individual caching
#1

[eluser]hykoh[/eluser]
Hello,

i'll cache a personal profile page ... but not every user can see this profile.
So, the url stay always the same (e.g. www.example.com/profile/id/34), but it's possible that not logged in/blocked users try to access it (and they will see the cached profile then).

Any solutions for it ?
#2

[eluser]obiron2[/eluser]
either;

Dont cache it - if it is a personal page, the number of hits it will get probably does not justify the caching anyway

or

Have your controller intercept the request, validate that the user is logged in and has correct permissions and then redirect to the cached page.
#3

[eluser]timpisti[/eluser]
Hello

Till the CSS and JS a static datas, my opinion is to move those files in a subdomain, eg:
if your site is http://www.example.com/, then the CSS and JS goes to
http://static.example.com/

This is 'absolute' url, don't mess width CI, moslty don't need the <?=base_url()?>, and in optimal way, it can be cached, or 'proxyed', lowering your traffic.

Timpisti
#4

[eluser]hykoh[/eluser]
And what is the sense of it timpisti ? the cached file will stay the same, also with http://static.example.com in it ?

or was it just another proposal to speed up my site ? Wink




Theme © iAndrew 2016 - Forum software by © MyBB