|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
rename?Can someone
help me with just a quick re-naming of a file?
I edit an
image but it always returns the same image before it was edited I guess because
its caching the image. I have tried everything with cache and give
up.
So after
editing the image i want to assign it a new name and return that to the
view.
So it will
always be a new file name after each edit.
592254896.jpg to rand() + the original
extension.
Thanks,
Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: rename?http://book.cakephp.org/view/431/disableCache or display image as $html->image('dog.gif?nocache='.time()); On Nov 4, 12:08 am, "Dave" <make.cake.b...@...> wrote: > Can someone help me with just a quick re-naming of a file? > > I edit an image but it always returns the same image before it was edited I > guess because its caching the image. I have tried everything with cache and > give up. > > So after editing the image i want to assign it a new name and return that to > the view. > > So it will always be a new file name after each edit. > > 592254896.jpg to rand() + the original extension. > > Thanks, > > Dave You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: rename?To my knowledge Cake doesn't cache assets (with the exception of compressed CSS) but instead tell the browser to cache them. Have you tried the old Ctrl+F5 force refresh? On Nov 4, 7:08 am, "Dave" <make.cake.b...@...> wrote: > Can someone help me with just a quick re-naming of a file? > > I edit an image but it always returns the same image before it was edited I > guess because its caching the image. I have tried everything with cache and > give up. > > So after editing the image i want to assign it a new name and return that to > the view. > > So it will always be a new file name after each edit. > > 592254896.jpg to rand() + the original extension. > > Thanks, > > Dave You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |