Re: Improve CuteNews Performance by Adding Page Caching

SO i checked out the 2 hacks. Only the approve hack adds something to index.php, and got nothing to do with headers.

<?php
header("Cache-Control: must-revalidate");
header("Pragma: cache");

$if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']);

$mtime = filemtime("./cutenews/data/comments.txt");
$gmdate_mod = gmdate('D, d M Y H:i:s', $mtime) . ' GMT';

if ($if_modified_since == $gmdate_mod) {
header("HTTP/1.0 304 Not Modified");
die();
}
header("Last-Modified: $gmdate_mod");
?>

I dont believe that this code goes into the cutenews index.php file but rather your websites main page. (index.php is the most common filename for the websites main page.)

Re: Improve CuteNews Performance by Adding Page Caching

i see... That makes sense to me.


Thanks

Re: Improve CuteNews Performance by Adding Page Caching

Hey, this is a good hack but I want it to refresh when I edit or delete something so I don't have to add a comment and delete to make it update again.

Thanks if you can help me. https://cutephp.com/forum/style_emoticons/default/smile.gif

29 (edited by 2008-01-09 23:10:15)

Re: Improve CuteNews Performance by Adding Page Caching

So does it work or not?
And what is the official code because I see it's been modified a lot.
Has anyone tested it?
And where exactly do you add the code?

Re: Improve CuteNews Performance by Adding Page Caching

No hack is official, that's why it's called a hack https://cutephp.com/forum/style_emoticons/default/smile.gif

To answer your question: don't know.

31 (edited by 2008-11-07 21:56:41)

Re: Improve CuteNews Performance by Adding Page Caching

Hi,

The final code is the one from post #7?

Re: Improve CuteNews Performance by Adding Page Caching

yep

Re: Improve CuteNews Performance by Adding Page Caching

yep


Ok, so i have to simply add the code from post #7 before

<?PHP

/***************************************************************************
 CuteNews CutePHP.com


to my script's main index.php file(the one which opens admin login page)?

Re: Improve CuteNews Performance by Adding Page Caching

yes

Re: Improve CuteNews Performance by Adding Page Caching

yes


It seems to be working, but how do I make sure?
By the way I have set filemtime path to ./data/comments.txt considering that comments.txt is located in the data directory within the same directory where index.php is, is it a correct path?

Re: Improve CuteNews Performance by Adding Page Caching

Cheers for the hack. Noticeable difference.

One thing however... when I go to the 'admin' page of Cute News, I have the following errors at the top of the page.

Warning: filemtime() [function.filemtime]: stat failed for ./cutenews/data/comments.txt in /home/paramore/public_html/cutenews/index.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/paramore/public_html/cutenews/index.php:7) in /home/paramore/public_html/cutenews/index.php on line 14

I presume it's something small I must of did wrong when applying the hack.

Re: Improve CuteNews Performance by Adding Page Caching

like Newuser pointed out on line 7 you must change the path to comments.txt
the 2nd warning might be related to the first.

Re: Improve CuteNews Performance by Adding Page Caching

like Newuser pointed out on line 7 you must change the path to comments.txt
the 2nd warning might be related to the first.


Can you please reply to my last post?

Re: Improve CuteNews Performance by Adding Page Caching

Can you please reply to my last post?

i thought i had answered both of you with my previous post https://cutephp.com/forum/style_emoticons/default/smile.gif
changing that path would seem ok i think, altough i think that you could use this page caching also on the pages where you have CN include codes; And then you do need ./cutenews/data/comments.txt

Re: Improve CuteNews Performance by Adding Page Caching

i thought i had answered both of you with my previous post https://cutephp.com/forum/style_emoticons/default/smile.gif
changing that path would seem ok i think, altough i think that you could use this page caching also on the pages where you have CN include codes; And then you do need ./cutenews/data/comments.txt


Thanks. https://cutephp.com/forum/style_emoticons/default/smile.gif
How do i use that caching on the pages with CN include codes?

41 (edited by 2010-04-26 02:03:24)

Re: Improve CuteNews Performance by Adding Page Caching

I am gonna try it too! https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Re: Improve CuteNews Performance by Adding Page Caching

I believe this bug was fixed in IE7, I am not sure it is present in IE6, which most users use now...


Yes IE7 do not have this bug. Cheers

Re: Improve CuteNews Performance by Adding Page Caching

Thanks for these coding. This is a great help for all.

Re: Improve CuteNews Performance by Adding Page Caching

Thanks
I am using this method now..

Re: Improve CuteNews Performance by Adding Page Caching

sorry can somebody tell me how to use this codes? https://cutephp.com/forum/style_emoticons/default/mellow.gif https://cutephp.com/forum/style_emoticons/default/tongue.gif https://cutephp.com/forum/style_emoticons/default/ohmy.gif

Re: Improve CuteNews Performance by Adding Page Caching

Means only cache get the page download more faster .. but if the first time user from the organic search engine it still have to download all the page. so the site speed still slow, is the CSS in CuteNews.. Sorry for my humble question.

Thank very much you in advance ...

Re: Improve CuteNews Performance by Adding Page Caching

Someone told me you will find there's bug using IE cache and it is advisable to add "must-revalidate" inside cache command header or perhaps IE is not going to refresh the particular page just like Netscape/Firefox may.

Re: Improve CuteNews Performance by Adding Page Caching

Platinum Escort – ведущее агентство эскорт-услуг в Москве, предлагающее возможность заказа привлекательной девушки для идеального сопровождения. Мы специализируемся на предоставлении высококлассных услуг эскорта для москвичей и гостей столицы, которые желают насладиться незабываемым опытом в компании прекрасной девушки. Platinum Escort обеспечивает высокий уровень сервиса и создает уникальные впечатления для каждого клиента.
Platinum Escort отличается от других агентств эскорта своей репутацией и индивидуальным подходом. Мы гордимся нашим широким выбором привлекательных и интеллигентных девушек, которые сочетают в себе не только красоту, но и образованность. Наше агентство гарантирует, что каждая девушка, предоставляемая Platinum Escort, будет идеальным выбором для наших клиентов, обеспечивая им незабываемые моменты.
Мы понимаем, что каждый клиент имеет свои уникальные предпочтения и ожидания. Поэтому Platinum Escort предлагает индивидуальный подбор девушки, идеально соответствующей вашим запросам. Наша команда профессиональных менеджеров готова помочь вам выбрать идеальную девушку, учитывая ваши предпочтения внешности, стиля, интересов и личных требований. Мы стремимся создать наиболее удовлетворяющий вариант сопровождения, чтобы каждое мероприятие или встреча были особенными и незабываемыми.
Мы ценим и гарантируем полную конфиденциальность и безопасность наших клиентов. Platinum Escort обеспечивает абсолютную конфиденциальность всех персональных данных, предоставленных в ходе заказа девушки. Мы принимаем все необходимые меры для защиты вашей частной информации и гарантируем, что никакая информация не будет передана третьим лицам.
Platinum Escort предлагает широкий спектр услуг, чтобы удовлетворить различные потребности клиентов. Вы можете заказать девушку для различных мероприятий, включая деловые встречи, обеды, вечеринки или просто провести приятное время в компании привлекательной собеседницы. Мы гарантируем, что наши девушки впечатлят вас своим обаянием, интеллектом и красотой, создавая неповторимую атмосферу и незабываемые воспоминания.
Не упустите возможность заказать идеальную девушку в Москве через Platinum Escort. Мы предлагаем высокий уровень сервиса, непревзойденное качество и уникальный опыт в сопровождении. Свяжитесь с нами прямо сейчас и обеспечьте себе незабываемый опыт с Platinum Escort.

Загляните на наш сайт и найдите свою идеальную девушку.  эскорт услуги в москве

Re: Improve CuteNews Performance by Adding Page Caching

Alvaro Price from Anaheim was looking for writing with examples essay

Conor Mills found the answer to a search query writing with examples essay


ESSAYERUDITE.COM


http://essayerudite.com/images/banner/500x500.jpg


writing with examples essay










movies essays format
free format for professional resume
order tourism dissertation chapter
popular presentation ghostwriting website for phd
professional writing service for school
incoming college freshman resume
pay to do esl custom essay on hillary clinton
martin weitzman resume writer
film studies essay ghostwriting websites
term paper plan
construction customer service resume
edmund wilson literary essays and reviews
best descriptive essay ghostwriters services for masters
cover letter template qa job
alter index docs text rebuild parameters resume memory 10m pga sga
professional masters essay writers website usa
are our zoos cruel to wild animals essay
cheap custom essay ghostwriter sites uk
sample skills list on resume
best article review proofreading sites ca
cheap essays proofreading websites for mba
top college dissertation introduction
best curriculum vitae editor services au
how to write a reaction to an article
research paper on firewall
college graduation essay
essay award scholarship
free samples fof business plan
descriptive essay for bank po exams
sample essay why i want to be a doctor
help me write leadership argumentative essay
community relations business plan example
free cause effect essay global warming
how to write a interview essay
examples of good essays in english
how to write a great descriptive essay
lancia thesis for sale uk
best cover letter writers website for college
quotations in essays examples
government writer services
pay for botany report
custom resume writers services for college
business plan for owning rental properties
sample medical business plan
it resume search free
cover letter word limit
writing service kamloops
rice dealer business plan
popular critical essay ghostwriters services ca
correct format of a cover letter
custom critical thinking ghostwriters service for college
english in resume write
beauty of rain essay
homework college magellan explorer
dost thesis grant
byu mba application essays
how to write an introspective poem
resume de l histoire la cicatrice
professional custom essay ghostwriter services for university
esl annotated bibliography ghostwriter website online
environmental engineering edu homework
popular phd curriculum vitae example
write a letter ot barack obama
rubrics for cause and effects essays
alfred adler research papers
piping designer resume template
cheap essays proofreading sites for university
best blog post editor website
business plan for finance
sample of case analysis
custom annotated bibliography editor sites online
essay for graduate business school sample
how to write a dissertation for masters
best dissertation methodology editing service for mba
gre issue essay reddit
sample of a good resume for a highschool student
dbq essay civil war
how to write print drivers
band 9 ielts essays
essay the crucible arthur miller
pay to write life science article
write a happy new year card
popular school essay writers sites for phd
encryption technique research papers
popular thesis statements for the crusades
free essays sickle cell
book report synopsis
resume sales assistant fashion
best reflective essay editor site
custom case study writer service us
angeles los resume writing
non dissertation doctorate degree
career aspirations literature review university
how to write emo poems
richard schechner essays on performance theory
popular phd essay proofreading website usa
resume for a software tester
how to write a paper on an
literature review on reliance life insurance

professional rhetorical analysis essay editor services for school
essay on time manag
gifted education dissertation sample
help me write compo
cover letter for an article submission
essay parts of an introduction

Posts: 26 to 49 of 49

Pages Previous 1 2

You must login or register to post a reply

CutePHP Forums → Script Feedback and Suggestion → Improve CuteNews Performance by Adding Page Caching